package com.doujiang.domain.dto;

import lombok.Data;

import java.util.List;

/**
 * 用户电影数据DTO
 */
@Data
public class UserMovieDataDTO {
    private Long userId;
    private String username;
    private List<UserCommentDTO> comments;
    private List<UserRatingDTO> ratings;
    private List<UserFavoriteDTO> favorites;
    private MovieStatsDTO stats;
    
    @Data
    public static class UserCommentDTO {
        private Long id;
        private String content;
        private String movieTitle;
        private Integer useful;
        private String createdAt;
    }
    
    @Data
    public static class UserRatingDTO {
        private Long id;
        private Double score;
        private String movieTitle;
        private String createdAt;
    }
    
    @Data
    public static class UserFavoriteDTO {
        private Long id;
        private String movieTitle;
        private Integer type; // 1=想看 2=已看 3=收藏
        private String createdAt;
    }
    
    @Data
    public static class MovieStatsDTO {
        private Integer totalComments;
        private Integer totalRatings;
        private Integer totalFavorites;
        private Double avgRating;
        private String favoriteGenre;
        private String mostWatchedYear;
    }
} 